package com.chenhao.springcloud.chenhaodesignservice.pattern.structural.adapter;

import javax.websocket.OnError;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/24 10:48
 */
public class PowerAdapter implements DC5{
    private AC220 ac220 = new AC220();
    @Override
    public int outputDC5V() {
        int adapterInput = ac220.outputAc220V();
        int adapterOutput = adapterInput/44;
        System.out.println("使用PowerAdapter输入AC："+adapterOutput);
        return adapterOutput;
    }
}
